Kadane's Algorithm To Maximum Sum Subarray Problem